Skip to content

DM-4710-Epic/instance secret linking - #91

Open
andrewchester-dm wants to merge 17 commits into
mainfrom
epic/instance-secret-linking
Open

andrewchester-dm wants to merge 17 commits into
mainfrom
epic/instance-secret-linking

Conversation

@andrewchester-dm

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread HISTORY.rst Resolved
Comment thread HISTORY.rst Resolved
Comment thread datamasque/client/exceptions.py Resolved
…d narrow the current links to shares and adoptions
…ode, secret fingerprint, server version and 1.8.0
@andrewchester-dm

Copy link
Copy Markdown
Collaborator Author

Celery workers discussions -- the links are now typed as shares and adoptions only.

  • InstanceSecretEventKind is replaced by InstanceSecretLinkKind, with only shared and adopted.
  • InstanceSecretEvent is replaced by InstanceSecretLink, and the class docstring now says a share or adoption.
  • peer_hostname, request_fingerprint and response_fingerprint are required str, no longer Optional.
  • InstanceSecretEventId is removed, since no method takes an event id, and id is a plain str.
  • get_current_instance_secret_links and links_ending both return InstanceSecretLink.
  • The link fields are renamed to match the server: request_fingerprint and peer_hostname.
  • The exports in datamasque/client/__init__.py and the tests are updated to match.

Comment thread datamasque/client/instance_secret.py Resolved

@cph-datamasque cph-datamasque left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor error handling bug. After that it's good to go.

One interesting point is that 1.7.0 is by the looks of it never getting a release? Do we want to leave things like that, renumber 1.8.0 to 1.7.0, or something? It's not a huge deal, just housekeeping

Comment thread datamasque/client/exceptions.py Resolved
@andrewchester-dm
andrewchester-dm force-pushed the epic/instance-secret-linking branch from 7699cd6 to 3e278af Compare November 30, 2026 01:14
… request creation and the fingerprint read, and drop "(unreleased)" from the 1.7.0 heading
@andrewchester-dm
andrewchester-dm force-pushed the epic/instance-secret-linking branch from 3e278af to 734fd9b Compare November 30, 2026 01:28
@andrewchester-dm

andrewchester-dm commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author
  • The error handling bug is fixed in create_instance_secret_link_request.
  • get_instance_secret_fingerprint had the same gap and got the same fix.
  • The version stays 1.8.0, with 1.7.0 as its own heading without "(unreleased)".

@andrewchester-dm andrewchester-dm self-assigned this Nov 30, 2026

@cph-datamasque cph-datamasque left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved once the two points are fixed up

Comment thread datamasque/client/instance_secret.py Outdated
Comment on lines +66 to +67
self._raise_for_link_error(response)
self._raise_for_status(response)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this pattern is repeated 3x - consider having _raise_for_link_error do _raise_for_status in it's "not a 400" branch

Comment thread HISTORY.rst Outdated
=======

1.7.0 (unreleased)
1.8.0 (unreleased)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put the expected release date in

…ise_for_link_error so callers make one call and add the 1.8.0 release date

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants